'use strict';
var React = require('react-native');
var assetsManager = React.NativeModules.AssetsManager;
class AssetsManager {

    constructor() {
    }

    getConfig(name) {
        return new Promise((fulfill, reject) => {
            assetsManager.getConfig(name, (error,msg) => {
                if (error) {
                    reject(error);
                } else {
                    fulfill(msg);
                }
            });
        });
    }


}

module.exports = new AssetsManager();